<template>
	<view class="content">
		<view class="img">
			<image style="height: 323rpx; width: 100%;" :src="list.picture" mode=""></image>
		</view>
		<view class="des">
			<view class="time">发布时间:{{list.createTime}}</view>

			<u-parse :html="list.rich"></u-parse>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: "",
				list: {}
			};
		},
		onLoad(options) {
			this.id = options.id
			this.getBannerDetail()
		},
		methods: {
			async getBannerDetail() {
				this.list = await this.$u.api.getBannerDetail({
					id: this.id
				})

			}
		}
	}
</script>

<style lang="scss">
	.content {
		padding: 50rpx 30rpx 0;

		.img {
			text-align: center;

		}

		.des {

			margin-top: 10rpx;

			.time {
				text-align: center;
				padding-top: 10rpx;
				font-size: 22rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #999999;
			}

			.p {
				margin-top: 60rpx;
				font-size: 22rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				line-height: 40rpx;
			}
		}
	}
</style>